function tag(TagName,BortherNumber = [],ChildNode = [],AttributeNomber,Attribute,Style,Attribute1,Style1)
        {
        this.TagName = TagName;
        this.BortherNumber = BortherNumber;
        this.ChildNode = ChildNode;
        this.flag = 0;
        this.AttributeNomber = AttributeNomber;
        this.Attribute = Attribute;
        this.Style = Style;
        this.Attribute1 = Attribute1;
        this.Style1 = Style1;
        }







var tags = [
        new tag("div",[],[1],1,"class","single-doctor"),
        new tag("div",[],[2],1,"class","single-doctor"),
        new tag("a",[],[3],2,"class","tdoctor","data-path-hover","m 180,34.57627 -180,0 L 0,0 180,0 z"),            
        new tag("figure",[],[4,5,7],0),
        new tag("img",[5,7],[],1,"src",""),
        new tag("svg",[],[6],1,"viewbox","0 0 180 320","preserveAspectRatio","none"),            
        new tag("path",[],[],1,"d","M 180,160 0,218 0,0 180,0 z"),
        new tag("figcaption",[],[8,9],0),
        new tag("h2",[9],[],0),
        new tag("p",[],[],0),
        ];
function AddNodes(FatherLocation,Number)
{
    alert(tags[Number].TagName + " " + Number);
    var para = document.createElement(tags[Number].TagName);
    FatherLocation.appendChild(para);
    tags[Number].flag = 1;
    return para;
}
function ContributeDom(flag)//构造dom树
{
    if(flag == 1)
    {
        t = 0;
        var NowLocation = document.getElementById("team_members");//初始结点
        var para = document.createElement("li");
        NowLocation.appendChild(para);//插入li
        alert(  NowLocation.innerHTML);
    for(var i = 0;i < tags.length;i ++)//构造的过程
    {
        if(tags[Number].ChildNode.length > 0)//如果它有子节点，开始递归，为其插入子节点
        {
            for(var j = 0;j < tags[Number].ChildNode.length;j ++)//开始插入
            {
                if(tags[tags[Number].ChildNode[j]].flag == 1)
                para = AddNodes(para,tags[Number].ChildNode[j]);//将当前节点传入
            }
         }
        if(tags[Number].BortherNumber.length > 0)//插入兄弟节点
        {
            for(var j = 0;j < tags[Number].ChildNode.length;j ++)//开始插入
            {
            if(tags[tags[Number].ChildNode[j]].flag == 1)
            FatherLocation = AddNodes(FatherLocation,tags[Number].ChildNode[j]);//将父节点传入
            }
        }
    }
    }
}
(function ContributeTaem()//构造团队成员
{
    function member(name,school,image)//成员对象
    {
        this.name = name;
        this.school = school;
        this.image = image;
    }
    var team = [//成员数组
        new member("陈家鹏","南京信息工程大学","images/cjp.jpg"),
        new member("韩佩恒","南京邮电大学","images/hph.jpg"),
        new member("徐荣荣","南京邮电大学","images/xrr.jpg"),
        new member("张晓铭","南京师范大学","imgages/zxm.jpg")
    ];
    for(var i = 0;i < 1;i ++)
    {
        ContributeDom(1);//状态一表示构造成员
    }
})();